var gulp=require('gulp');
var concat = require('gulp-concat');
var minifyCss = require('gulp-minify-css');
var uglify = require('gulp-uglify');
gulp.task("default",function(){
    // 把1.js和2.js合并为main.js，输出到dest/js目录下
    gulp.src(['bocweb/web/js/jquery.mCustomScrollbar.js','bocweb/web/js/num.js','bocweb/js/jquery.easing.1.3.js','bocweb/js/jquery.transit.js','bocweb/js/prefixfree.min.js','bocweb/js/bocfe.js','bocweb/js/html5.js','bocweb/web/js/placeholder.js','bocweb/web/js/jquery.flexslider-min.js','bocweb/web/js/jquery.mousewheel.js','bocweb/web/js/masonry-docs.min.js','bocweb/web/js/slick.js','bocweb/m/swiper/swiper.min.js']).pipe(concat('main.js')).pipe(uglify()).pipe(gulp.dest('./bocweb/js'));
    gulp.src(['bocweb/web/css/reset.css','bocweb/web/js/jquery.mCustomScrollbar.css','bocweb/web/js/flexslider.css','bocweb/web/js/slick.css','bocweb/m/swiper/swiper.css']).pipe(concat('main.css')).pipe(minifyCss()).pipe(gulp.dest('./bocweb/web/css'));
})



